    package com.fearless.demo01;

    public class Proxy implements Rent{

        private Host host;


        public Proxy(Host host) {
            this.host = host;
        }

        public void rent() {
            System.out.println("时间");
            host.rent();
            System.out.println("日志");
        }

    }
